import { stockApi } from "@/api/index.js";
import { mapState } from "vuex";
import { filterWrap } from '@/components/index';
export default {
    components: { filterWrap },
    name: 'formulaLibrary',
    data() {
        return {
            dataList: [
                {
                    data1: '110218A',
                    data2: 'CF2021117A',
                    data3: 'CF2021117A',
                    data4: '79.41',
                    data5: '若依',
                    data6: '2023-07-18',
                    data7: '否',
                    data8: '审核成功',
                },
                {
                    data1: '110218A',
                    data2: 'CF2021117A',
                    data3: 'CF2021117A',
                    data4: '79.41',
                    data5: '若依',
                    data6: '2023-07-18',
                    data7: '否',
                    data8: '审核成功',
                },
                {
                    data1: '110218A',
                    data2: 'CF2021117A',
                    data3: 'CF2021117A',
                    data4: '79.41',
                    data5: '若依',
                    data6: '2023-07-18',
                    data7: '否',
                    data8: '审核成功',
                },
                {
                    data1: '110218A',
                    data2: 'CF2021117A',
                    data3: 'CF2021117A',
                    data4: '79.41',
                    data5: '若依',
                    data6: '2023-07-18',
                    data7: '否',
                    data8: '审核成功',
                },
                {
                    data1: '110218A',
                    data2: 'CF2021117A',
                    data3: 'CF2021117A',
                    data4: '79.41',
                    data5: '若依',
                    data6: '2023-07-18',
                    data7: '否',
                    data8: '审核成功',
                },
            ],
            query: {
                pageIndex: 1,
                pageSize: 20
            },
            total: 5
        }
    },
    computed: {
        ...mapState(['userInfo']),
    },

    mounted() {
        
    },
    methods: {
        handleShowPrivateRoomTips() {
            this.showPrivateRoomTips = true;
            this.$refs.refPrivateRoomTips && this.$refs.refPrivateRoomTips.show();
        },
        handleSubmit(number, type) {            // 提交引导显示次数
            this.activeMask = -1;
            let sv_novice_count = type === 'add' ? this.$store.state.maskEntity.count + number : number;
            stockApi.OperateNoviceGuide({ id: this.$store.state.maskEntity.id, sv_novice_count: sv_novice_count }).then(res => {
                this.$store.commit('updateMaskEntity', { id: -1, count: 0 });
            });
        },
    }
};